package Observer;

/**
 * 具体的观察者类
 */
public class ConcreteObserver implements Observer{
    private final String name;

    public ConcreteObserver(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(name+"收到通知:"+message);
    }
}
